import { getAction, deleteAction, putAction, postAction, downFilePost } from '@/api/manage'
const serviceName = ''
const smuAreaList = (params) => getAction(`${serviceName}/smuggle/smuArea/list`, params)
const smuWarnConfigList = (params) => getAction(`${serviceName}/smuggle/smuWarnConfig/list`, params)
const addQy = (params) => postAction(`${serviceName}/smuggle/smuWarnConfig/addQy`, params)
const addWp = (params) => postAction(`${serviceName}/smuggle/smuWarnConfig/addWp`, params)
const addWz = (params) => postAction(`${serviceName}/smuggle/smuWarnConfig/addWz`, params)
const addZh = (params) => postAction(`${serviceName}/smuggle/smuWarnConfig/addZh`, params)
const KeywordQueryAll = (params) => getAction(`${serviceName}/smuggle/smuInfoKeyword/queryAll`, params)
const queryByIdQy = (params) => getAction(`${serviceName}/smuggle/smuWarnConfig/queryByIdQy`, params)
const queryByIdWp = (params) => getAction(`${serviceName}/smuggle/smuWarnConfig/queryByIdWp`, params)
const queryByIdZh = (params) => getAction(`${serviceName}/smuggle/smuWarnConfig/queryByIdZh`, params)
const queryByIdWz = (params) => getAction(`${serviceName}/smuggle/smuWarnConfig/queryByIdWz`, params)
const exportWpTemplate = (params) => downFilePost(`${serviceName}/smuggle/smuWarnConfig/exportWpTemplate`, params)
const exportYczhTemplate = (params) => downFilePost(`${serviceName}/smuggle/smuWarnConfig/exportYczhTemplate`, params)
const exportZhmTemplate = (params) => downFilePost(`${serviceName}/smuggle/smuWarnConfig/exportZhmTemplate`, params)
const importZsExcel = (params) => postAction(`${serviceName}/smuggle/smuWarnConfig/importZsExcel`, params)
const importYczhExcel = (params) => postAction(`${serviceName}/smuggle/smuWarnConfig/importYczhExcel`, params)
const importZhExcel = (params) => postAction(`${serviceName}/smuggle/smuWarnConfig/importZhExcel`, params)
/**------------告警动态----------------**/
//告警动态分页列表查询
const smuInfoWarnList = (params) => getAction(`${serviceName}/smuggle/smuInfoWarn/list`, params)
//处置
const smuInfoWarnEdit = (params) => putAction(`${serviceName}/smuggle/smuInfoWarn/edit`, params)
//保存配置
const saveQueryConfig = (params) => postAction(`${serviceName}/smuggle/smuInfoWarn/saveQueryConfig`, params)
//获取保存的配置信息
const getQueryConfig = (params) => getAction(`${serviceName}/smuggle/smuInfoWarn/getQueryConfig`, params)
//告警分布图谱
const queryWarnDistribution = (params) => getAction(`${serviceName}/smuggle/smuInfoWarn/queryWarnDistribution`, params)
//告警详情
const queryWarnDetails = (params) => getAction(`${serviceName}/smuggle/smuInfoWarn/queryWarnDetails`, params)

/**------------告警一张图----------------**/
//告警一张图市县告警数据查询
const smuInfoWarnListDt = (params) => getAction(`${serviceName}/smuggle/smuInfoWarn/listDt`, params)
//告警一张图分页列表查询
const smuInfoWarnlistDtPage = (params) => getAction(`${serviceName}/smuggle/smuInfoWarn/listDtPage`, params)
//告警一张图告警数据详情通过id查询
const smuInfoWarnQueryDtById = (params) => getAction(`${serviceName}/smuggle/smuInfoWarn/queryDtById`, params)

export {
  smuAreaList,
  smuWarnConfigList,
  addQy,
  addWp,
  addWz,
  addZh,
  KeywordQueryAll,
  queryByIdQy,
  queryByIdWp,
  queryByIdZh,
  queryByIdWz,
  exportWpTemplate,
  exportYczhTemplate,
  exportZhmTemplate,
  importZsExcel,
  importYczhExcel,
  importZhExcel,
  smuInfoWarnList,
  smuInfoWarnEdit,
  saveQueryConfig,
  getQueryConfig,
  smuInfoWarnListDt,
  smuInfoWarnlistDtPage,
  smuInfoWarnQueryDtById,
  queryWarnDetails,
  queryWarnDistribution,
}
